// Widget configuration.

form.dashboard-grid-widget-svggraph {
	.graph-widget-config-tabs {
		padding: 10px 0;

		> .tabs-nav {
			margin-right: 0;
			margin-left: 0;
			border-top: 1px solid $ui-border-color;
		}

		.ui-tabs-nav {
			position: sticky;
			top: 0;
			background: $header-bg-color;
			z-index: 3;
		}
	}

	.table-forms-container {
		border: 1px solid $ui-border-color;
		border-top: none;
	}

	.table-forms-separator {
		padding: 0;
	}

	.dataset-head {
		display: grid;
		grid-template-columns: 24px 24px 1fr 1fr 24px;
		grid-gap: 10px;
		align-items: start;
	}

	.dataset-body.list-accordion-item-body {
		display: grid;
		grid-template-columns: 24px 1fr 1fr 24px;
		grid-gap: 10px;
		align-items: start;
		position: relative;
		margin-top: 10px;

		.form-grid {
			padding-top: 0;

			&:first-child {
				grid-column-start: 2;
			}
		}
	}

	.drag-icon {
		position: absolute;
		left: -14px;
	}

	.td-drag-icon {
		.drag-icon {
			top: 0;
			left: 9px;
			margin-right: 5px;
		}
	}

	.dataset-actions {
		text-align: right;

		.btn-remove {
			top: 0;
			right: 0;
			vertical-align: baseline;
		}
	}

	.items-list {
		grid-column: 2 / span 3;
	}

	.list-vertical-accordion {
		position: relative;
		margin-left: 15px;
		padding-left: 0;

		&.sortable {
			overflow: visible;
			margin-top: -5px;
			margin-bottom: -5px;
		}

		.list-accordion-item-head {
			padding: 0;
		}
	}

	.list-accordion-item {
		position: relative;
		width: 100%;
		padding: 5px 0;
		list-style-type: none;

		&.list-accordion-item-opened {
			&::before {
				content: ' ';
				position: absolute;
				top: 24px;
				bottom: 0;
				left: 11px;
				width: 2px;
				background: $ui-border-color;
			}

		}

		&.list-accordion-item-closed {
			.multiselect {
				height: 24px;
				overflow: hidden;
			}

			.dataset-body {
				display: none;
			}

			.dataset-head {
				.table-forms-separator {
					border: none;
				}

				.single-item-table {
					thead,
					tfoot,
					.table-col-handle,
					.table-col-action {
						display: none;
					}
				}
			}

			.items-list {
				padding-left: 0;
			}
		}
	}

	.single-item-table {
		.table-col-handle { width: 26px; }
		.table-col-no { width: 20px; }
		.table-col-color { width: 24px; }
		.table-col-action { width: 55px; }

		th {
			padding: 5px 5px 5px 0;
		}

		.single-item-table-row td {
			padding: 0 5px 5px 0;
		}

		.single-item-table-row:last-child td {
			padding-bottom: 0;
		}

		tfoot td {
			padding: 5px 5px 5px 10px;
		}
	}

	.no-items-message {
		display: none;
		line-height: 24px;
		color: $font-alt-color;
	}
}
